﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace HotelManager.View
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có muốn thoát không?", "Thông Báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) == DialogResult.OK)
            {
                Application.Exit();
            }
        }

        private void đăngXuấtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Yes;
            this.Hide();
        }

        private void khachToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormKhachHang frmKH = new FormKhachHang();
            frmKH.Show();
        }

        private void dichvuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormSuDungDV frmDV = new FormSuDungDV();
            frmDV.Show();
        }

        private void thuephongToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThuePhong frmTP = new FormThuePhong();
            frmTP.Show();
        }

        private void thanhtoanToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormThanhToan frmTT = new FormThanhToan();
            frmTT.Show();
        }

        private void vatdungToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormVatDung frmVD = new FormVatDung();
            frmVD.Show();
        }

        
        private void FormMain_Load(object sender, EventArgs e)
        {

        }

        private void phòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //FormPhong frmPhong = new FormPhong();
            //frmPhong.Show();
        }

        private void giúpĐỡToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormHelp frmhelp = new FormHelp();
            frmhelp.Show();
        }

        private void danhMụcToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

       

        
    }
}
